
cordova.define("com.frontier.ptmo.plugins.voice.voicePlugin", function(require, exports, module) {/**
 * cordova is available under *either* the terms of the modified BSD license *or* the
 * MIT License (2008). See http://opensource.org/licenses/alphabetical for full text.
 *
 * Copyright (c) Matt Kane 2010
 * Copyright (c) 2011, IBM Corporation
 */


        var exec = require("cordova/exec");

        var voicePlugin={
			//
        	working: function(success, failure, number){
        		exec(success, failure, "voicePlugin", "tts", number);
		    },
		    joint: function(success, failure, number){
        		exec(success, failure, "voicePlugin", "joint", number);
		    },
		    startRecord: function(success, failure, number){
        		exec(success, failure, "voicePlugin", "startRecord", number);
		    },
		    stopRecord: function(success, failure, number){
        		exec(success, failure, "voicePlugin", "stopRecord", number);
			},
			pauseRecord: function(success, failure, number){
        		exec(success, failure, "voicePlugin", "pauseRecord", number);
			},
			resumRecord: function(success, failure, number){
        		exec(success, failure, "voicePlugin", "resumRecord", number);
		    },
		    amrToMmp3: function(success, failure, number){
        		exec(success, failure, "voicePlugin", "amrToMmp3", number);
		    }
        };
        module.exports = voicePlugin;

});
